package com.xiaoshuidi.cloud.module.member.mapper.activities;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.member.controller.app.activities.vo.ActivitiesListVO;
import com.xiaoshuidi.cloud.module.member.controller.app.activities.vo.EnrollListVO;
import com.xiaoshuidi.cloud.module.member.controller.app.activities.vo.EnrollStatusPageVO;
import com.xiaoshuidi.cloud.module.member.pojo.activities.MemberActivities;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MemberActivitiesMapper extends BaseMapperX<MemberActivities> {
    IPage<EnrollListVO> getStatusPage(Page<MemberActivities> memberActivitiesPage,@Param("vo") EnrollStatusPageVO page);

    IPage<EnrollListVO> getPage(Page<MemberActivities> memberActivitiesPage, @Param("vo")EnrollStatusPageVO page);

    @Select("select * from member_activities order by create_time desc")
    List<MemberActivities> getList(IPage<ActivitiesListVO> page);
}
